package com.project.study.farming.base.entity.dto;

import com.project.study.farming.common.utils.CommonUtil;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 农产品信息
 * @since 2020-04-26
 */
@Data
public class CropsDto {

    private String id;

    private String name;

    private String image;

    private String remark;

    private String createTime;

    private String createBy;

    public void setCreateTime(LocalDateTime time){
        this.createTime = CommonUtil.formatLocalDateTime(time);
    }
}
